package at.ac.tuwien.dse.health.event.type;

import java.io.Serializable;

/**
 * Wraps an event that was posted and an exception occurred during processing the event.
 *
 * @author Bernhard Nickel
 * @author Gregor Schauer
 * @author Dominik Strasser
 */
public class ExceptionEvent<E extends Event<T>, T extends Serializable> extends InfrastructureEvent<E, T> {
	protected Throwable throwable;

	public ExceptionEvent(E event, Throwable throwable, String source) {
		super(event, source);
		this.throwable = throwable;
	}

	public Throwable getThrowable() {
		return throwable;
	}
}
